<div class="jumbotron mod-nom">
    
    <form class="form-inline" role="form" method="post">
        <div class="form-group">
            <div class="input-group">
                <label class="sr-only" for="dscfiltro">Módulo</label>
                <input type="text" class="form-control" id="dscfiltro" name="dscfiltro" placeholder="Módulo" value="<?php echo $this->dscfiltro; ?>">
            </div>
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-default">
                <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                Pesquisar
            </button>
        </div>    
    </form>
    
    <div class="row">
        <?php 
        if(isset($this->sessao->modulos_menu_inicial))
            foreach($this->sessao->modulos_menu_inicial as $row) { 
            
            if(!array_search($row['MOD_ID'], $this->arr_mod) && strlen($this->dscfiltro) > 0) unset($row['MOD_ID']);
            
            if(isset($row['MOD_ID'])){
        ?>
            <div class="col-xs-6 col-md-3">
                <a href="<?php echo $this->baseUrl($this->modulo.'/'.$row['MOD_ARQ']); ?>" class="thumbnail">
                    <?php
                     $img = glob('public/upload/modulos/'.$row['MOD_ID'].'.*');
                    if(isset($img[0])){ ?> 
                    <img src="<?php echo $this->baseUrl('/').$img[0]; ?>" alt="<?php echo $row['MOD_NOM']; ?>" />
                    <?php } ?>
                    <p><?php echo $row['MOD_NOM']; ?></p>
                </a>
            </div>
        <?php } 
        
        }?>
    </div>
</div>
